package com.ophiux.cs.application.chat.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.ophiux.cs.application.core.RequestDTO;
import com.ophiux.utils.common.StringUtil;

/**
 * 发送图文消息
 * @author chenh
 *
 */
public class SendCSMessageRequest extends RequestDTO{
	
	private String TO_USER;	//目标人	Y
	
	private String FROM_USER;	//发送人	Y
	
	private String MSG_TYPE;	//消息类型 1：图文	Y

	private String CONTENT;	//消息内容		Y
	
	private String DIALOG_ID;	//对话ID	N
	
	private String SEND_SCOPE;	//发送范围，1：私发   2：群发
	
	public String getTO_USER() {
		return TO_USER;
	}

	public String getSEND_SCOPE() {
		return SEND_SCOPE;
	}

	public void setSEND_SCOPE(String sEND_SCOPE) {
		SEND_SCOPE = sEND_SCOPE;
	}

	public void setTO_USER(String tO_USER) {
		TO_USER = tO_USER;
	}

	public String getFROM_USER() {
		return FROM_USER;
	}

	public void setFROM_USER(String fROM_USER) {
		FROM_USER = fROM_USER;
	}

	public String getMSG_TYPE() {
		return MSG_TYPE;
	}

	public void setMSG_TYPE(String mSG_TYPE) {
		MSG_TYPE = mSG_TYPE;
	}

	public String getCONTENT() {
		return CONTENT;
	}

	public void setCONTENT(String cONTENT) {
		CONTENT = cONTENT;
	}

	public String getDIALOG_ID() {
		return DIALOG_ID;
	}

	public void setDIALOG_ID(String dIALOG_ID) {
		DIALOG_ID = dIALOG_ID;
	}

	@Override
	public boolean isParamValid() {
		if(StringUtil.isEmpty(this.TO_USER)
				|| StringUtil.isEmpty(this.CONTENT)
				|| StringUtil.isEmpty(this.FROM_USER)
				|| StringUtil.isEmpty(this.MSG_TYPE)) {
			return false;
		}
		return true;
	}

}
